import pandas as pd

# 食物属性字典
食物属性 = {
    # 主食类
    "大米_1": {"克数": 150, "可食部": 1, "卡路里": 117, "蛋白质": 3.0, "碳水化合物": 26.4, "脂肪": 0.4, "总脂肪酸": 0.3, "饱和脂肪酸": 0.1, "单不饱和脂肪酸": 0.1, "多不饱和脂肪酸": 0.1, "亚油酸": 0.1182},
    "面条_1": {"克数": 150, "可食部": 1, "卡路里": 107, "蛋白质": 3.9, "碳水化合物": 22.8, "脂肪": 0.4, "总脂肪酸": 0.3, "饱和脂肪酸": 0.1, "单不饱和脂肪酸": 0, "多不饱和脂肪酸": 0.2, "亚油酸": 0.1695},
    "馒头_1": {"克数": 100, "可食部": 1, "卡路里": 223, "蛋白质": 7.0, "碳水化合物": 47.0, "脂肪": 1.1, "总脂肪酸": 0.9, "饱和脂肪酸": 0.7, "单不饱和脂肪酸": 0.2, "多不饱和脂肪酸": 0.05, "亚油酸": 0.2415},
    "米粉_1": {"克数": 100, "可食部": 1, "卡路里": 349, "蛋白质": 0.4, "碳水化合物": 85.8, "脂肪": 0.8, "总脂肪酸": 0.7, "饱和脂肪酸": 0.3, "单不饱和脂肪酸": 0.1, "多不饱和脂肪酸": 0.3, "亚油酸": 0.2163},
    "油条_1": {"克数": 100, "可食部": 1, "卡路里": 388, "蛋白质": 6.9, "碳水化合物": 51.0, "脂肪": 17.6, "总脂肪酸": 10.2, "饱和脂肪酸": 0.5, "单不饱和脂肪酸": 7.5, "多不饱和脂肪酸": 2.2, "亚油酸": 1.275},
    "玉米_1": {"克数": 25, "可食部": 1, "卡路里": 364, "蛋白质": 8.9, "碳水化合物": 77.7, "脂肪": 3.0, "总脂肪酸": 2.5, "饱和脂肪酸": 1.2, "单不饱和脂肪酸": 0.8, "多不饱和脂肪酸": 0.5, "亚油酸": 0.00713},

    # 蔬菜类
    "菠菜_1": {"克数": 100, "可食部": 0.89, "卡路里": 27, "蛋白质": 2.85, "碳水化合物": 2.41, "脂肪": 0.62, "总脂肪酸": 0.238, "饱和脂肪酸": 0.063, "单不饱和脂肪酸": 0.01, "多不饱和脂肪酸": 0.165, "亚油酸": 0.026},
    "韭菜_1": {"克数": 100, "可食部": 0.9, "卡路里": 61, "蛋白质": 1.5, "碳水化合物": 14.2, "脂肪": 0.3, "总脂肪酸": 0.21, "饱和脂肪酸": 0.04, "单不饱和脂肪酸": 0.004, "多不饱和脂肪酸": 0.166, "亚油酸": 0.067},
    "油麦菜_1": {"克数": 100, "可食部": 0.81, "卡路里": 15, "蛋白质": 1.36, "碳水化合物": 2.87, "脂肪": 0.15, "总脂肪酸": 0.108, "饱和脂肪酸": 0.02, "单不饱和脂肪酸": 0.006, "多不饱和脂肪酸": 0.082, "亚油酸": 0.024},
    "芹菜_1": {"克数": 100, "可食部": 1, "卡路里": 14, "蛋白质": 0.69, "碳水化合物": 2.97, "脂肪": 0.17, "总脂肪酸": 0.153, "饱和脂肪酸": 0.042, "单不饱和脂肪酸": 0.032, "多不饱和脂肪酸": 0.079, "亚油酸": 0.079},
    "莴笋_1": {"克数": 100, "可食部": 0.62, "卡路里": 20, "蛋白质": 2.2, "碳水化合物": 3.88, "脂肪": 0.12, "总脂肪酸": 0.09, "饱和脂肪酸": 0.04, "单不饱和脂肪酸": 0, "多不饱和脂肪酸": 0.05, "亚油酸": 0.04},
    "竹笋_1": {"克数": 100, "可食部": 0.63, "卡路里": 27, "蛋白质": 2.6, "碳水化合物": 5.2, "脂肪": 0.3, "总脂肪酸": 0.21, "饱和脂肪酸": 0.069, "单不饱和脂肪酸": 0.007, "多不饱和脂肪酸": 0.134, "亚油酸": 0.114},
    "莲花白_1": {"克数": 100, "可食部": 0.86, "卡路里": 13, "蛋白质": 1.5, "碳水化合物": 2.18, "脂肪": 0.2, "总脂肪酸": 0.138, "饱和脂肪酸": 0.027, "单不饱和脂肪酸": 0.015, "多不饱和脂肪酸": 0.096, "亚油酸": 0.042},
    "紫甘蓝_1": {"克数": 100, "可食部": 0.86, "卡路里": 31, "蛋白质": 1.43, "碳水化合物": 7.37, "脂肪": 0.16, "总脂肪酸": 0.113, "饱和脂肪酸": 0.021, "单不饱和脂肪酸": 0.012, "多不饱和脂肪酸": 0.08, "亚油酸": 0.034, "花生四烯酸": 0.001},
    "花椰菜_1": {"克数": 100, "可食部": 0.82, "卡路里": 25, "蛋白质": 1.92, "碳水化合物": 4.97, "脂肪": 0.28, "总脂肪酸": 0.195, "饱和脂肪酸": 0.13, "单不饱和脂肪酸": 0.034, "多不饱和脂肪酸": 0.031, "亚油酸": 0.016},
    "西兰花_1": {"克数": 100, "可食部": 0.83, "卡路里": 26, "蛋白质": 1.2, "碳水化合物": 4.67, "脂肪": 0.76, "总脂肪酸": 0.516, "饱和脂肪酸": 0.116, "单不饱和脂肪酸": 0.053, "多不饱和脂肪酸": 0.347, "亚油酸": 0.08},
    "莲菜_1": {"克数": 100, "可食部": 0.88, "卡路里": 74, "蛋白质": 2.6, "碳水化合物": 17.2, "脂肪": 0.1, "总脂肪酸": 0.07, "饱和脂肪酸": 0.03, "单不饱和脂肪酸": 0.02, "多不饱和脂肪酸": 0.02, "亚油酸": 0.014},
    "西红柿_1": {"克数": 150, "可食部": 0.97, "卡路里": 20, "蛋白质": 0.82, "碳水化合物": 4.04, "脂肪": 0.31, "总脂肪酸": 0.142, "饱和脂肪酸": 0.028, "单不饱和脂肪酸": 0.031, "多不饱和脂肪酸": 0.083, "亚油酸": 0.08},
    "鲜辣椒_1": {"克数": 100, "可食部": 0.91, "卡路里": 34, "蛋白质": 1.39, "碳水化合物": 7.66, "脂肪": 0.4, "总脂肪酸": 0.27, "饱和脂肪酸": 0.067, "单不饱和脂肪酸": 0.027, "多不饱和脂肪酸": 0.176, "亚油酸": 0.145},
    "干辣椒_1": {"克数": 100, "可食部": 0.88, "卡路里": 281, "蛋白质": 11.9, "碳水化合物": 51.4, "脂肪": 8.2, "总脂肪酸": 5.822, "饱和脂肪酸": 0.82, "单不饱和脂肪酸": 0.492, "多不饱和脂肪酸": 4.51, "亚油酸": 4.26},
    "白萝卜_1": {"克数": 100, "可食部": 0.95, "卡路里": 16, "蛋白质": 0.68, "碳水化合物": 3.4, "脂肪": 0.1, "总脂肪酸": 0.097, "饱和脂肪酸": 0.032, "单不饱和脂肪酸": 0.017, "多不饱和脂肪酸": 0.048, "亚油酸": 0.017},
    "胡萝卜_1": {"克数": 100, "可食部": 0.97, "卡路里": 41, "蛋白质": 0.93, "碳水化合物": 9.58, "脂肪": 0.24, "总脂肪酸": 0.146, "饱和脂肪酸": 0.032, "单不饱和脂肪酸": 0.012, "多不饱和脂肪酸": 0.102, "亚油酸": 0.01},
    "土豆_1": {"克数": 100, "可食部": 0.94, "卡路里": 69, "蛋白质": 1.68, "碳水化合物": 15.7, "脂肪": 0.1, "总脂肪酸": 0.071, "饱和脂肪酸": 0.026, "单不饱和脂肪酸": 0.002, "多不饱和脂肪酸": 0.043, "亚油酸": 0.032},
    "红薯_1": {"克数": 100, "可食部": 0.9, "卡路里": 86, "蛋白质": 1.57, "碳水化合物": 15.3, "脂肪": 0.05, "总脂肪酸": 0.033, "饱和脂肪酸": 0.018, "单不饱和脂肪酸": 0.001, "多不饱和脂肪酸": 0.014, "亚油酸": 0.0618},
    "黄瓜_1": {"克数": 100, "可食部": 0.92, "卡路里": 15, "蛋白质": 0.65, "碳水化合物": 3.63, "脂肪": 0.11, "总脂肪酸": 0.074, "饱和脂肪酸": 0.037, "单不饱和脂肪酸": 0.005, "多不饱和脂肪酸": 0.032, "亚油酸": 0.028},
    "南瓜_1": {"克数": 100, "可食部": 0.85, "卡路里": 26, "蛋白质": 1.0, "碳水化合物": 6.5, "脂肪": 0.1, "总脂肪酸": 0.07, "饱和脂肪酸": 0.052, "单不饱和脂肪酸": 0.013, "多不饱和脂肪酸": 0.005, "亚油酸": 0.002},
    "冬瓜_1": {"克数": 100, "可食部": 0.8, "卡路里": 14, "蛋白质": 0.62, "碳水化合物": 3.39, "脂肪": 0.02, "总脂肪酸": 0.015, "饱和脂肪酸": 0.002, "单不饱和脂肪酸": 0.004, "多不饱和脂肪酸": 0.009, "亚油酸": 0.009},
    "西葫芦_1": {"克数": 100, "可食部": 0.73, "卡路里": 17, "蛋白质": 1.21, "碳水化合物": 3.11, "脂肪": 0.32, "总脂肪酸": 0.186, "饱和脂肪酸": 0.084, "单不饱和脂肪酸": 0.011, "多不饱和脂肪酸": 0.091, "亚油酸": 0.03},
    "洋葱_1": {"克数": 100, "可食部": 0.9, "卡路里": 40, "蛋白质": 1.1, "碳水化合物": 9.34, "脂肪": 0.1, "总脂肪酸": 0.072, "饱和脂肪酸": 0.042, "单不饱和脂肪酸": 0.013, "多不饱和脂肪酸": 0.017, "亚油酸": 0.013},
    "葱_1": {"克数": 50, "可食部": 0.78, "卡路里": 72, "蛋白质": 2.5, "碳水化合物": 16.8, "脂肪": 0.1, "总脂肪酸": 0.07, "饱和脂肪酸": 0.017, "单不饱和脂肪酸": 0.014, "多不饱和脂肪酸": 0.039, "亚油酸": 0.037},
    "蒜_1": {"克数": 50, "可食部": 0.89, "卡路里": 149, "蛋白质": 6.36, "碳水化合物": 33.1, "脂肪": 0.5, "总脂肪酸": 0.349, "饱和脂肪酸": 0.089, "单不饱和脂肪酸": 0.011, "多不饱和脂肪酸": 0.249, "亚油酸": 0.229},
    "榨菜_1": {"克数": 50, "可食部": 1, "卡路里": 27, "蛋白质": 2.86, "碳水化合物": 4.67, "脂肪": 0.42, "总脂肪酸": 0.14, "饱和脂肪酸": 0.01, "单不饱和脂肪酸": 0.092, "多不饱和脂肪酸": 0.038, "亚油酸": 0.02},
    "豆角_1": {"克数": 100, "可食部": 0.96, "卡路里": 40, "蛋白质": 1.97, "碳水化合物": 7.41, "脂肪": 0.28, "总脂肪酸": 0.173, "饱和脂肪酸": 0.05, "单不饱和脂肪酸": 0.01, "多不饱和脂肪酸": 0.113, "亚油酸": 0.44},
    "豆芽_1": {"克数": 100, "可食部": 1, "卡路里": 47, "蛋白质": 4.5, "碳水化合物": 4.5, "脂肪": 1.6, "总脂肪酸": 1.3, "饱和脂肪酸": 0.3, "单不饱和脂肪酸": 0.4, "多不饱和脂肪酸": 0.6, "亚油酸": 0.224},

    # 豆类及制品
    "黄豆_1": {"克数": 50, "可食部": 1, "卡路里": 396.33, "蛋白质": 35.2, "碳水化合物": 34.4, "脂肪": 15.97, "总脂肪酸": 14.9, "饱和脂肪酸": 2.5, "单不饱和脂肪酸": 4.06667, "多不饱和脂肪酸": 8.33333, "EPA":0.03469, "亚油酸": 5.7052},
    "绿豆_1": {"克数": 50, "可食部": 1, "卡路里": 329, "蛋白质": 21.6, "碳水化合物": 62.0, "脂肪": 0.8, "总脂肪酸": 0.6, "饱和脂肪酸": 0.2, "单不饱和脂肪酸": 0.1, "多不饱和脂肪酸": 0.3, "亚油酸": 0.2442},
    "豆腐_1": {"克数": 100, "可食部": 1, "卡路里": 84, "蛋白质": 6.6, "碳水化合物": 3.4, "脂肪": 5.3, "总脂肪酸": 4.9, "饱和脂肪酸": 2.0, "单不饱和脂肪酸": 1.8, "多不饱和脂肪酸": 1.1, "亚油酸": 1.4308},
    "豆腐丝_1": {"克数": 100, "可食部": 1, "卡路里": 323, "蛋白质": 33.2, "碳水化合物": 12.65, "脂肪": 16.625, "总脂肪酸": 17.1, "饱和脂肪酸": 3.4, "单不饱和脂肪酸": 4.375, "多不饱和脂肪酸": 9.325, "亚油酸": 7.715663},
    "豆浆_1": {"克数": 245, "可食部": 1, "卡路里": 25.33, "蛋白质": 2.43, "碳水化合物": 1.0, "胆固醇":1.67, "脂肪": 1.3, "总脂肪酸": 1.4, "饱和脂肪酸": 0.2, "单不饱和脂肪酸": 0.3, "多不饱和脂肪酸": 0.9, "亚油酸": 0.451675},

    # 菌藻类
    "平菇_1": {"克数": 50, "可食部": 1, "卡路里": 28.2, "蛋白质": 2.1, "碳水化合物": 5.64, "脂肪": 0.24, "总脂肪酸": 0.2, "饱和脂肪酸": 0.0, "单不饱和脂肪酸": 0, "多不饱和脂肪酸": 0.2, "亚油酸": 0.097425},
    "木耳_1": {"克数": 50, "可食部": 1, "卡路里": 27, "蛋白质": 1.5, "碳水化合物": 6.0, "脂肪": 0.2, "总脂肪酸": 0.2, "饱和脂肪酸": 0.0, "单不饱和脂肪酸": 0.1, "多不饱和脂肪酸": 0.1, "亚油酸": 0.082},
    "海带_1": {"克数": 100, "可食部": 1, "卡路里": 43, "蛋白质": 1.68, "碳水化合物": 9.57, "脂肪": 0.56, "总脂肪酸": 0.392, "饱和脂肪酸": 0.247, "单不饱和脂肪酸": 0.098, "多不饱和脂肪酸": 0.047, "亚油酸": 0.02},
    "紫菜_1": {"克数": 10, "可食部": 1, "卡路里": 35, "蛋白质": 5.81, "碳水化合物": 5.11, "脂肪": 0.28, "总脂肪酸": 0.196, "饱和脂肪酸": 0.061, "单不饱和脂肪酸": 0.025, "多不饱和脂肪酸": 0.11, "亚油酸": 0.004},

    # 水果类
    "梨_1": {"克数": 150, "可食部": 0.82, "卡路里": 42, "蛋白质": 0.5, "碳水化合物": 10.6, "脂肪": 0.23, "总脂肪酸": 0.116, "饱和脂肪酸": 0.012, "单不饱和脂肪酸": 0.049, "多不饱和脂肪酸": 0.055, "亚油酸": 0.054},
    "苹果_1": {"克数": 150, "可食部": 0.85, "卡路里": 61, "蛋白质": 0.17, "碳水化合物": 14.8, "脂肪": 0.15, "总脂肪酸": 0.086, "饱和脂肪酸": 0.028, "单不饱和脂肪酸": 0.007, "多不饱和脂肪酸": 0.051, "亚油酸": 0.043},
    "桃子_1": {"克数": 150, "可食部": 0.89, "卡路里": 39, "蛋白质": 0.91, "碳水化合物": 9.54, "脂肪": 0.25, "总脂肪酸": 0.172, "饱和脂肪酸": 0.019, "单不饱和脂肪酸": 0.067, "多不饱和脂肪酸": 0.086, "亚油酸": 0.084},
    "李子_1": {"克数": 50, "可食部": 0.91, "卡路里": 46, "蛋白质": 0.7, "碳水化合物": 11.4, "脂肪": 0.28, "总脂肪酸": 0.195, "饱和脂肪酸": 0.017, "单不饱和脂肪酸": 0.134, "多不饱和脂肪酸": 0.044, "亚油酸": 0.044},
    "橙子_1": {"克数": 150, "可食部": 0.74, "卡路里": 50, "蛋白质": 0.92, "碳水化合物": 11.78, "脂肪": 0.14, "总脂肪酸": 0.063, "饱和脂肪酸": 0.015, "单不饱和脂肪酸": 0.023, "多不饱和脂肪酸": 0.025, "亚油酸": 0.018},
    "桔子_1": {"克数": 150, "可食部": 0.76, "卡路里": 63, "蛋白质": 1.3, "碳水化合物": 15.5, "脂肪": 0.3, "总脂肪酸": 0.15, "饱和脂肪酸": 0.035, "单不饱和脂肪酸": 0.055, "多不饱和脂肪酸": 0.06, "亚油酸": 0.044},
    "柚子_1": {"克数": 250, "可食部": 0.69, "卡路里": 42, "蛋白质": 0.77, "碳水化合物": 10.66, "脂肪": 0.14, "总脂肪酸": 0.077, "饱和脂肪酸": 0.021, "单不饱和脂肪酸": 0.02, "多不饱和脂肪酸": 0.036, "亚油酸": 0.029},
    "芒果_1": {"克数": 100, "可食部": 0.68, "卡路里": 60, "蛋白质": 0.82, "碳水化合物": 15.0, "脂肪": 0.38, "总脂肪酸": 0.303, "饱和脂肪酸": 0.092, "单不饱和脂肪酸": 0.14, "多不饱和脂肪酸": 0.071, "亚油酸": 0.019},
    "柿子_1": {"克数": 100, "可食部": 0.87, "卡路里": 70, "蛋白质": 0.58, "碳水化合物": 18.6, "脂肪": 0.19, "总脂肪酸": 0.4, "饱和脂肪酸": 0.02, "单不饱和脂肪酸": 0.037, "多不饱和脂肪酸": 0.343, "亚油酸": 0.039},
    "木瓜_1": {"克数": 250, "可食部": 0.89, "卡路里": 43, "蛋白质": 0.47, "碳水化合物": 10.8, "脂肪": 0.26, "总脂肪酸": 0.211, "饱和脂肪酸": 0.081, "单不饱和脂肪酸": 0.072, "多不饱和脂肪酸": 0.058, "亚油酸": 0.011},
    "香蕉_1": {"克数": 150, "可食部": 0.59, "卡路里": 89, "蛋白质": 1.09, "碳水化合物": 22.8, "脂肪": 0.33, "总脂肪酸": 0.217, "饱和脂肪酸": 0.112, "单不饱和脂肪酸": 0.032, "多不饱和脂肪酸": 0.073, "亚油酸": 0.046},
    "西瓜_1": {"克数": 150, "可食部": 0.59, "卡路里": 30, "蛋白质": 0.61, "碳水化合物": 7.55, "脂肪": 0.15, "总脂肪酸": 0.103, "饱和脂肪酸": 0.016, "单不饱和脂肪酸": 0.037, "多不饱和脂肪酸": 0.05, "亚油酸": 0.05},
    "哈密瓜_1": {"克数": 150, "可食部": 0.71, "卡路里": 34, "蛋白质": 0.84, "碳水化合物": 8.16, "脂肪": 0.19, "总脂肪酸": 0.135, "饱和脂肪酸": 0.051, "单不饱和脂肪酸": 0.003, "多不饱和脂肪酸": 0.081, "亚油酸": 0.035},
    "菠萝_1": {"克数": 150, "可食部": 0.68, "卡路里": 50, "蛋白质": 0.54, "碳水化合物": 13.1, "脂肪": 0.12, "总脂肪酸": 0.062, "饱和脂肪酸": 0.009, "单不饱和脂肪酸": 0.013, "多不饱和脂肪酸": 0.04, "亚油酸": 0.023},
    "干枣_1": {"克数": 50, "可食部": 0.8, "卡路里": 276, "蛋白质": 3.2, "碳水化合物": 67.8, "脂肪": 0.5, "总脂肪酸": 0.4, "饱和脂肪酸": 0.1, "单不饱和脂肪酸": 0.1, "多不饱和脂肪酸": 0.2, "亚油酸": 0.12},
    "葡萄_1": {"克数": 150, "可食部": 0.86, "卡路里": 69, "蛋白质": 0.72, "碳水化合物": 18.1, "脂肪": 0.16, "总脂肪酸": 0.109, "饱和脂肪酸": 0.054, "单不饱和脂肪酸": 0.007, "多不饱和脂肪酸": 0.048, "亚油酸": 0.037},
    "樱桃_1": {"克数": 150, "可食部": 0.8, "卡路里": 63, "蛋白质": 1.06, "碳水化合物": 16.0, "脂肪": 0.2, "总脂肪酸": 0.137, "饱和脂肪酸": 0.038, "单不饱和脂肪酸": 0.047, "多不饱和脂肪酸": 0.052, "亚油酸": 0.027},
    "草莓_1": {"克数": 150, "可食部": 0.97, "卡路里": 32, "蛋白质": 0.67, "碳水化合物": 7.68, "脂肪": 0.3, "总脂肪酸": 0.213, "饱和脂肪酸": 0.015, "单不饱和脂肪酸": 0.043, "多不饱和脂肪酸": 0.155, "亚油酸": 0.09},
    "火龙果_1": {"克数": 150, "可食部": 0.69, "卡路里": 57, "蛋白质": 0.36, "碳水化合物": 15.2, "脂肪": 0.14, "总脂肪酸": 0.2, "饱和脂肪酸": 0.022, "单不饱和脂肪酸": 0.084, "多不饱和脂肪酸": 0.094, "亚油酸": 0.093},
    "猕猴桃_1": {"克数": 150, "可食部": 0.83, "卡路里": 64, "蛋白质": 1.06, "碳水化合物": 14.0, "脂肪": 0.44, "总脂肪酸": 0.363, "饱和脂肪酸": 0.029, "单不饱和脂肪酸": 0.047, "多不饱和脂肪酸": 0.287, "亚油酸": 0.246},

    # 坚果类
    "花生_1": {"克数": 25, "可食部": 0.71, "卡路里": 601, "蛋白质": 21.7, "碳水化合物": 23.8, "脂肪": 48, "总脂肪酸": 45.6, "饱和脂肪酸": 9.0, "单不饱和脂肪酸": 17.6, "多不饱和脂肪酸": 19.0, "亚油酸": 17.1912},
    "核桃_1": {"克数": 25, "可食部": 0.43, "卡路里": 646, "蛋白质": 14.9, "碳水化合物": 19.1, "脂肪": 58.8, "总脂肪酸": 56.2, "饱和脂肪酸": 4.8, "单不饱和脂肪酸": 8.8, "多不饱和脂肪酸": 42.6, "亚油酸": 35.968},
    "瓜子_1": {"克数": 25, "可食部": 0.52, "卡路里": 625, "蛋白质": 22.6, "碳水化合物": 17.3, "脂肪": 52.8, "总脂肪酸": 50.0, "饱和脂肪酸": 6.9, "单不饱和脂肪酸": 13.8, "多不饱和脂肪酸": 29.3, "反式脂肪酸": 0.52, "亚油酸": 27.15111},

    # 肉蛋类
    "鸡蛋_1": {"克数": 50, "可食部": 0.87, "卡路里": 139, "蛋白质": 13.1, "碳水化合物": 2.4, "脂肪": 8.6, "胆固醇": 648, "总脂肪酸": 7.2, "饱和脂肪酸": 4.6, "单不饱和脂肪酸": 1.9, "多不饱和脂肪酸": 0.7, "反式脂肪酸": 0.038, "DHA":0.058,"DPA":0.007,"ALA":0.036, "亚油酸": 0.3816, "花生四烯酸": 0.022},
    "猪肉_1": {"克数": 100, "可食部": 0.91, "卡路里": 331, "蛋白质": 15.1, "碳水化合物": 0.0, "脂肪": 30.1, "胆固醇": 86, "总脂肪酸": 26.7, "饱和脂肪酸": 10.8, "单不饱和脂肪酸": 13.3, "多不饱和脂肪酸": 2.6, "反式脂肪酸": 0.6, "DHA":0.021,"DPA":0.046,"ALA":0.4539, "亚油酸": 1.5219, "花生四烯酸": 0.184},
    "牛肉_1": {"克数": 100, "可食部": 1, "卡路里": 160, "蛋白质": 20.0, "碳水化合物": 0.5, "脂肪": 8.7, "胆固醇": 58, "总脂肪酸": 8, "饱和脂肪酸": 4.1, "单不饱和脂肪酸": 3.5, "多不饱和脂肪酸": 0.4, "反式脂肪酸": 1.59, "亚油酸": 0.232, "花生四烯酸": 0.03},
    "羊肉_1": {"克数": 100, "可食部": 1, "卡路里": 139, "蛋白质": 18.5, "碳水化合物": 1.6, "脂肪": 6.5, "胆固醇": 82, "总脂肪酸": 7.4, "饱和脂肪酸": 4.2, "单不饱和脂肪酸": 2.4, "多不饱和脂肪酸": 0.8, "EPA":0.0296, "亚油酸": 0.5328, "花生四烯酸": 0.030},
    "鸡肉_1": {"克数": 100, "可食部": 0.63, "卡路里": 145, "蛋白质": 20.3, "碳水化合物": 0.9, "脂肪": 6.7, "胆固醇": 106, "总脂肪酸": 13.75, "饱和脂肪酸": 4.35, "单不饱和脂肪酸": 6.5, "多不饱和脂肪酸": 2.9, "反式脂肪酸": 0.748, "EPA":0.01,"DHA":0.03,"DPA":0.01, "亚油酸": 2.76, "花生四烯酸": 0.04},
    "淡水鱼_1": {"克数": 100, "可食部": 0.54, "卡路里": 108.5, "蛋白质": 17.35, "碳水化合物": 2.15, "脂肪": 3.4, "胆固醇": 107, "总脂肪酸": 3.05, "饱和脂肪酸": 0.93, "单不饱和脂肪酸": 1.15, "多不饱和脂肪酸": 0.97, "EPA":0.11576, "DHA":0.0247, "DPA":0.0683, "亚油酸": 0.3142, "花生四烯酸": 0.015833},
    "海水鱼_1": {"克数": 100, "可食部": 0.76, "卡路里": 130.375, "蛋白质": 18.625, "碳水化合物": 0.0, "脂肪": 5.66, "胆固醇": 62, "总脂肪酸": 4.85, "饱和脂肪酸": 1.49, "单不饱和脂肪酸": 2.42, "多不饱和脂肪酸": 0.94, "反式脂肪酸": 0.034, "EPA":0.2762, "DHA":0.449, "DPA":0.0774,"ALA":0.045, "亚油酸": 0.057, "花生四烯酸": 0.0725},
    "虾_1": {"克数": 100, "可食部": 0.86, "卡路里": 85, "蛋白质": 20.1, "碳水化合物": 0.0, "脂肪": 0.51, "胆固醇": 161, "总脂肪酸": 0.339, "饱和脂肪酸": 0.101, "单不饱和脂肪酸": 0.086, "多不饱和脂肪酸": 0.152, "反式脂肪酸": 0.004, "EPA":0.03, "DHA":0.031, "DPA":0.002,"ALA":0.002, "亚油酸": 0.031, "花生四烯酸": 0.012},
    "腊肉_1": {"克数": 100, "可食部": 1, "卡路里": 181, "蛋白质": 22.3, "碳水化合物": 2.6, "脂肪": 9, "胆固醇": 46, "总脂肪酸": 8.2, "饱和脂肪酸": 3.0, "单不饱和脂肪酸": 4.5, "多不饱和脂肪酸": 0.7, "反式脂肪酸": 0.15, "EPA":0.003,"DHA":0.006,"DPA":0.024,"ALA":0.227, "亚油酸": 5.23, "花生四烯酸": 0.16},
    "动物内脏_1": {"克数": 100, "可食部": 1, "卡路里": 134, "蛋白质": 21.4, "碳水化合物": 2.47, "脂肪": 3.65, "胆固醇": 301, "总脂肪酸": 2.56, "饱和脂肪酸": 1.17, "单不饱和脂肪酸": 0.52, "多不饱和脂肪酸": 0.87,"DHA":0.02,"DPA":0.03, "亚油酸": 0.35, "花生四烯酸": 0.44},

    # 乳制品类
    "纯奶_1": {"克数": 257, "可食部": 1, "卡路里": 48.67, "蛋白质": 3.4, "碳水化合物": 4.8, "脂肪": 1.8, "胆固醇": 10.7, "总脂肪酸": 1.6, "饱和脂肪酸": 1.1, "单不饱和脂肪酸": 0.5, "多不饱和脂肪酸": 0.0, "反式脂肪酸": 0.112, "亚油酸": 0.099},
    "奶粉_1": {"克数": 15, "可食部": 1, "卡路里": 453.5, "蛋白质": 21.8, "碳水化合物": 53.2, "脂肪": 17.1, "胆固醇": 64, "总脂肪酸": 15.3, "饱和脂肪酸": 9.8, "单不饱和脂肪酸": 4.4, "多不饱和脂肪酸": 1.1, "亚油酸": 0.7272, "花生四烯酸": 0.040},
    "酸奶_1": {"克数": 198, "可食部": 1, "卡路里": 76.7, "蛋白质": 3.0, "碳水化合物": 11.5, "脂肪": 2.1, "胆固醇": 8.8, "总脂肪酸": 1.9, "饱和脂肪酸": 1.4, "单不饱和脂肪酸": 0.5, "多不饱和脂肪酸": 0.0, "亚油酸": 0.0437},

    # 饮品类
    "橙汁_1": {"克数": 300, "可食部": 1, "卡路里": 45, "蛋白质": 0.7, "碳水化合物": 10.4, "脂肪": 0.2, "总脂肪酸": 0.1, "饱和脂肪酸": 0.024, "单不饱和脂肪酸": 0.036, "多不饱和脂肪酸": 0.04, "亚油酸": 0.029},
    "咖啡粉_1": {"克数": 15, "可食部": 1, "卡路里": 353, "蛋白质": 12.2, "碳水化合物": 75.4, "脂肪": 0.5, "总脂肪酸": 0.434, "饱和脂肪酸": 0.197, "单不饱和脂肪酸": 0.041, "多不饱和脂肪酸": 0.196, "亚油酸": 0.18},

    # 零食类
    "饼干_1": {"克数": 15, "可食部": 1, "卡路里": 510, "蛋白质": 6.64, "碳水化合物": 61.3, "脂肪": 26.4, "总脂肪酸": 26.29, "饱和脂肪酸": 5.56, "单不饱和脂肪酸": 6.55, "多不饱和脂肪酸": 14.18, "反式脂肪酸": 1.08,"ALA":0.4505, "亚油酸": 11.5},
    "奶糖_1": {"克数": 15, "可食部": 1, "卡路里": 560, "蛋白质": 1.07, "碳水化合物": 64.7, "脂肪": 32.8, "胆固醇": 104, "总脂肪酸": 31.454, "饱和脂肪酸": 20.6, "多不饱和脂肪酸": 10.854, "反式脂肪酸": 0.674, "ALA":0.065, "亚油酸": 0.445},
    "巧克力_1": {"克数": 15, "可食部": 1, "卡路里": 546, "蛋白质": 4.88, "碳水化合物": 61.2, "脂肪": 31.3, "胆固醇": 8, "总脂肪酸": 29.242, "饱和脂肪酸": 18.5, "多不饱和脂肪酸": 10.742, "反式脂肪酸": 0.112,"ALA":0.085, "亚油酸": 0.947, "花生四烯酸": 0.003},
    "切片面包_1": {"克数": 10, "可食部": 1, "卡路里": 271.5, "蛋白质": 7.45, "碳水化合物": 50.6, "脂肪": 4.45, "总脂肪酸": 3.4, "饱和脂肪酸": 0.3, "单不饱和脂肪酸": 1.8, "多不饱和脂肪酸": 1.3, "亚油酸": 0.8806},
    "中式点心_1": {"克数": 15, "可食部": 1, "卡路里": 458.5, "蛋白质": 7.05, "碳水化合物": 60.35, "脂肪": 22, "总脂肪酸": 28.8, "饱和脂肪酸": 16.6, "单不饱和脂肪酸": 10.3, "多不饱和脂肪酸": 1.9, "亚油酸": 1.2672},
    "糖果蜜饯_1": {"克数": 15, "可食部": 1, "卡路里": 308.5, "蛋白质": 1.82, "碳水化合物": 67.77, "脂肪": 5.48, "总脂肪酸": 0.4, "饱和脂肪酸": 0.2, "单不饱和脂肪酸": 0.05, "多不饱和脂肪酸": 0.15, "亚油酸": 0.0755},
    "蛋糕_1": {"克数": 150, "可食部": 1, "卡路里": 374, "蛋白质": 3.47, "碳水化合物": 64.0, "脂肪": 11.5, "胆固醇": 41, "总脂肪酸": 12.53, "饱和脂肪酸": 4.14, "单不饱和脂肪酸": 4.91, "多不饱和脂肪酸": 3.48, "反式脂肪酸": 1.62, "亚油酸": 1.73},
    # 油脂类
    "植物油日均": {"克数": 1, "可食部": 1, "卡路里": 898.3, "蛋白质": 6.22, "碳水化合物": 0.114, "脂肪": 99.76, "胆固醇": 9.143, "总脂肪酸": 95.56, "饱和脂肪酸": 13.77143, "单不饱和脂肪酸": 34.38571, "多不饱和脂肪酸": 47.40286, "EPA":0.717,"ALA":2.86, "亚油酸": 41.72601, "花生四烯酸": 0.014},
    "动物油日均": {"克数": 1, "可食部": 1, "卡路里": 897, "蛋白质": 0.0, "碳水化合物": 0.2, "脂肪": 99.6, "胆固醇": 93, "总脂肪酸": 95.2, "饱和脂肪酸": 41.1, "单不饱和脂肪酸": 45.6, "多不饱和脂肪酸": 8.5, "亚油酸": 8.4728},
    "花生酱日均": {"克数": 1, "可食部": 1, "卡路里": 600, "蛋白质": 6.9, "碳水化合物": 25.3, "脂肪": 53, "总脂肪酸": 50.5, "饱和脂肪酸": 8.3, "单不饱和脂肪酸": 24.4, "多不饱和脂肪酸": 17.8, "亚油酸": 17.776},
    "沙拉酱日均": {"克数": 1, "可食部": 1, "卡路里": 724, "蛋白质": 2.8, "碳水化合物": 1.0, "脂肪": 78.8, "总脂肪酸": 74.7, "饱和脂肪酸": 10.6, "单不饱和脂肪酸": 18.5, "多不饱和脂肪酸": 45.6, "亚油酸": 38.9934}
}

# 将字典转换为 DataFrame
df = pd.DataFrame.from_dict(食物属性, orient='index')

# 重置索引，使食物名称成为一列
df.reset_index(inplace=True)
df.rename(columns={'index': '食物种类'}, inplace=True)

# 保存到 Excel 文件
df.to_excel('食物属性.xlsx', index=False)

print("数据已成功提取到 '食物属性.xlsx' 文件中。")